#!/bin/bash

gcc -o main main.c -fopenmp src/genmtrand.c src/rw_functions.c src/rw_png.c -lm -lpng -std=c99 -O3 -Wall

for i in $(seq 1 10)
do
	./main 0 1024 2048 "$i" >> serial/saida_1024_2048
done

for i in $(seq 1 10)
do
	./main 0 2048 4096 "$i" >> serial/saida_2048_4096
done

for i in $(seq 1 10)
do
	./main 0 4096 8192 "$i" >> serial/saida_4096_8192
done
